package com.hudongwx.my_shian.utils;

/**
 * Created by hudongwx on 16-12-9.
 */
public class API {
    //搜索链接
    public static String getSearchUrl(String content){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Product?condition="+content+"";
    }
    //登陆请求
    public static String loginUrl = "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Login";

    //首页viewpager
    public static String getViewPagerImg(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Banner";
    }
    //食品分类
    public static String getFoodMenu(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/ProductBrand";
    }
    //食品分类商品数据
    public static String getFoodGoods(String code){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Product?brand="+code+"";
    }
    //每个商品具体内容
    public static String getGoodsContent(String productId){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Product?productId="+productId+"";
    }
    //商品分享链接
    public static String getProductShareUrl(String id){
        return "http://www.shiandianping.com/ProductInfo-"+id+"";
    }
    //社区热帖
    public static String getCommunity(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/posts/GetHeatPost";
    }
    //精选专题
    public static String getSpecial(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/SpecialTopic?pageSize=5&pageIndex=1";
    }
    //精选专题内容
    public static String getSubject(String id){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/SpecialTopic?id="+id+"";
    }
    //点赞请求
    public static String getZanUrl(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/SpecialTopic";
    }
    //精选专题分享链接
    public static String getShareUrl(String id){
        return "http://www.shiandianping.com/"+id+"";
    }

    //我来晒单
    public static String getShowdanUrl(int page){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=5&pageIndex="+page+"";
    }
    //饮食养生
    public static String getEatingUrl(int page){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=2&pageIndex="+page+"";
    }
    //运动健身
    public static String getSportUrl(int page){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=3&pageIndex="+page+"";
    }
    //品质生活
    public static String getLivetUrl(int page){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=4&pageIndex="+page+"";
    }
    //帖子详情
    public static String getDetailsUrl(String postid){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?postId="+postid+"";
    }
    //我的社区
    public static String getMyCommunityUrl(String couldId){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?type=myCenter&pageSize=5&cloudId="+couldId+"&pageIndex=1";

    }
    //他人的的社区
    public static String getCommunityUrl(String couldId){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&cloudId="+couldId+"&pageIndex=1";

    }
    //靓帖推荐
    public static String getCommunityEssenceUrl(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/posts/GetGoodPost";
    }
    //大家晒单
    public static String getCommunitySunUrl(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts";
    }

    //我来晒单,社区
    public static String getCommunitySun2Url(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=5&pageIndex=1";
    }

    //社区，饮食养生
    public static String getCommunityHealthUrl(){
        return "http://api.shiandianping.com/api/sourceAndroidDianPing/v3.1.0/Posts?pageSize=5&boardId=2&pageIndex=1";
    }


}
